<template>
  <div class="slot-container">
    <slot name="module_A" :msg="msg"></slot>
    <slot :msg="msg"></slot>
    {{msg1}}
    <div v-for="(item,index) in list" :key="index+'i'" ref="deivBlock">
          {{item.name }}
    </div>
    <slot name="testProp" :user="user">
      {{user.first}}
    </slot>
    <!-- <slot name="testProp" :user="user">
      {{user.first}}
    </slot> -->
  </div>
</template>

<script>
export default {
  props:['msg1','list'],
  data(){
    return{
      msg:'message',
      user:{
        first:'shi',
        last:'jiali'
      }
    }
  },
  mounted(){
    // if(this.refsArr.length === 0){
      setTimeout(() => {
      console.log('00000000',this.$refs.deivBlock)
      }, 30);
    // }
  }
}
</script>

<style>

</style>